package stockblaster.client.objectives;

import stockblaster.client.CurrentUser;

public class ClassObjective extends Objective {
	/**
	 * Creates an objective with a given description and class to reach.
	 * 
	 * @param description
	 *            The English description of the objective.
	 * @param className
	 *            The class to make active.
	 */
	public ClassObjective(String description, int sensitivity, String className) {
		super(description, sensitivity);
		this.className = className;
	}

	/**
	 * Check whether the player is on the target class screen.
	 * 
	 * @return Whether or not the player is on the target class screen.
	 */
	public boolean check() {
		return this.className.equals(CurrentUser.getCurrentClass());
	}
	
	private String className;
}